<template>
  <div class="home">
    <nav class="main-nav">
      <ul class="navs-ul">
        <li class="nav-item nav-drinks">
          <router-link to="drinks">
            <div>茶饮</div>
          </router-link>
        </li>
        <li class="nav-item nav-information">
          <router-link to="information">
            <div>楼盘信息</div>
          </router-link>
        </li>
        <li class="nav-item nav-prospectus">
          <router-link to="prospectus">
            <div>置业计划书</div>
          </router-link>
        </li>
        <li class="nav-item nav-call">
          <a href="javascript:;">
            <div>呼叫服务</div>
          </a>
          <div></div>
        </li>
      </ul>
    </nav>
  </div>
</template>

<script>
export default {
  name: "home"
};
</script>
<style lang="stylus">
.home {
  background: url('~@/assets/background.png') no-repeat;
  background-size: cover;
  background-position: left top;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1032px;
}

.main-nav {
  height: 1032px;
}

ul.navs-ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.nav-item {
  width: 650px;
  height: 1032px;

  a {
    display: block;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: left top;
    padding-top: 1px; /* no */
    text-decoration: none;

    div {
      margin-top: 680px;
      text-align: center;
      color: white;
      font-weight: bold;
      font-size: 70px;
    }
  }

  &.nav-drinks a {
    background-image: url('~@/assets/drinks-nav.png');
  }

  &.nav-information a {
    background-image: url('~@/assets/information-nav.png');
  }

  &.nav-prospectus a {
    background-image: url('~@/assets/prospectus-nav.png');
  }

  &.nav-call a {
    background-image: url('~@/assets/call-nav.png');
  }
}
</style>